﻿using WebApiClient;
using WebApiClient.Attributes;

namespace Spark.WeiXinSdk.Mini
{
    public interface IMiniApi : IHttpApi
    {
        [HttpGet("https://api.weixin.qq.com/sns/jscode2session")]
        [JsonReturn]
        ITask<MiniSession> Code2session(string appid, string secret, string js_code, string grant_type = "authorization_code");
    }
}